function helloximo01(json) {
	j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0; img  = new Array();
    if (numposts <= json.feed.entry.length) {maxpost = numposts;} else {maxpost=json.feed.entry.length;}		
    for (var i = 0; i < maxpost; i++) {var entry = json.feed.entry[i]; var posttitle = entry.title.$t; var pcm; var posturl;
    if (i == json.feed.entry.length) break;
    for (var k = 0; k < entry.link.length; k++) {if (entry.link[k].rel == 'alternate') {posturl = entry.link[k].href; break;}}		
	for (var k = 0; k < entry.link.length; k++) {if (entry.link[k].rel == 'replies' && entry.link[k].type == 'text/html') {pcm = entry.link[k].title.split(" ")[0]; break;}}	
	
    if ("content" in entry) {var postcontent = entry.content.$t;} else if ("summary" in entry) {var postcontent = entry.summary.$t;} else var postcontent = ""; 	

	var rdp_postdate=entry.published.$t;
	var monthnames=new Array();monthnames[1]="Tháng 1";monthnames[2]="Tháng 2";monthnames[3]="Tháng 3";monthnames[4]="Tháng 4";monthnames[5]="Tháng 5";monthnames[6]="Tháng 6";monthnames[7]="Tháng 7";monthnames[8]="Tháng 8";monthnames[9]="Tháng 9";monthnames[10]="Tháng 10";monthnames[11]="Tháng 11";monthnames[12]="Tháng 12";
    var ngay = '';

	if(j>imgr.length-1) j=0; img[i] = imgr[j];	
	s = postcontent	; a = s.indexOf("<img"); b = s.indexOf("src=\"",a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5);
	if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")) img[i] = d;
	if("media$thumbnail" in entry){var thumburl = entry.media$thumbnail.url;}
    else{ var thumburl = imgr[0]};
   

	if(j>imgr.length-1) j=0; img[i] = imgr[j];	
	s = postcontent	; a = s.indexOf("<img"); b = s.indexOf("src=\"",a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5);
	if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")) img[i] = d;
	if("media$thumbnail" in entry){var thumburl = entry.media$thumbnail.url;}
    else{ var thumburl = imgr[0]};

if (i==0) {var trtd = '<div class="hello-h-top"><a href="'+posturl+'" title="'+posttitle+'"><img src="'+thumburl.replace("/s72-c/","/w350/")+'"/></a><h2><a href="'+posturl+'" title="'+posttitle+'">'+posttitle+'</a></h2></a><div class="hello-h-topdate">&nbsp;►&nbsp;'+ngay+monthnames[parseInt(rdp_postdate.substring(5,7),10)]+' - '+rdp_postdate.substring(8,10)+' '+' , '+rdp_postdate.substring(0,4)+'</div><div class="hello-h-top-info clear">'+removeHtmlTag(postcontent,210)+'...</div></div>'; document.write(trtd); }		  
if(i==1 || i==3 || i==5){var trtd = '<li class="hellotop"><a href="'+posturl+'" title="'+posttitle+'"><img src="'+thumburl+'"/></a><a href="'+posturl+'" title="'+posttitle+' '+removeHtmlTag(postcontent,160)+'">'+posttitle+'</a><div class="hello-h-topdate">'+ngay+monthnames[parseInt(rdp_postdate.substring(5,7),10)]+' - '+rdp_postdate.substring(8,10)+' '+' , '+rdp_postdate.substring(0,4)+'</div></li>';document.write(trtd); }	
if(i==2 || i==4 || i==6){var trtd = '<li class="hellotop bg"><a href="'+posturl+'" title="'+posttitle+'"><img src="'+thumburl+'"/></a><a   href="'+posturl+'" title="'+posttitle+' '+removeHtmlTag(postcontent,160)+'">'+posttitle+'</a><div class="hello-h-topdate">'+ngay+monthnames[parseInt(rdp_postdate.substring(5,7),10)]+' - '+rdp_postdate.substring(8,10)+' '+' , '+rdp_postdate.substring(0,4)+'</div></li>';document.write(trtd); }	
}
document.write('');
}

function helloximo02(json) {
	j = (showRandomImg) ? Math.floor((imgr.length+1)*Math.random()) : 0; img  = new Array();
    if (numposts <= json.feed.entry.length) {maxpost = numposts;} else {maxpost=json.feed.entry.length;}		
    for (var i = 0; i < maxpost; i++) {var entry = json.feed.entry[i]; var posttitle = entry.title.$t; var pcm; var posturl;
    if (i == json.feed.entry.length) break;
    for (var k = 0; k < entry.link.length; k++) {if (entry.link[k].rel == 'alternate') {posturl = entry.link[k].href; break;}}		
	for (var k = 0; k < entry.link.length; k++) {if (entry.link[k].rel == 'replies' && entry.link[k].type == 'text/html') {pcm = entry.link[k].title.split(" ")[0]; break;}}		
    if ("content" in entry) {var postcontent = entry.content.$t;} else if ("summary" in entry) {var postcontent = entry.summary.$t;} else var postcontent = ""; 	
	if(j>imgr.length-1) j=0; img[i] = imgr[j];	
	s = postcontent	; a = s.indexOf("<img"); b = s.indexOf("src=\"",a); c = s.indexOf("\"",b+5); d = s.substr(b+5,c-b-5);
	if((a!=-1)&&(b!=-1)&&(c!=-1)&&(d!="")) img[i] = d;
     if("media$thumbnail" in entry){var thumburl = entry.media$thumbnail.url;}
    else{ var thumburl = imgr[0]};
	
if (i==0) {var trtd = '<div class="hello-h-left"><a href="'+posturl+'" title="'+posttitle+'"><img src="'+thumburl.replace("/s72-c/","/w250/")+'"/></a><h2><a href="'+posturl+'" title="'+posttitle+'">'+posttitle+'</a></h2><div class="hello-left-info clear">'+removeHtmlTag(postcontent,160)+'...</div></div>'; document.write(trtd); }	
if(i==1){var trtd = '<div class="hello-h-right"><a href="'+posturl+'" title="'+posttitle+'"><img src="'+thumburl.replace("/s72-c/","/w150/")+'"/></a><h2><a href="'+posturl+'" title="'+posttitle+'">'+posttitle+'</a></h2><div class="hello-left-info-li">'+removeHtmlTag(postcontent,300)+'...</div></div>'; document.write(trtd); }	
if(i>=2 && i <=6){var trtd = '<ul class="hello-h-right-li"><li><a href="'+posturl+'" title="'+removeHtmlTag(postcontent,200)+'">'+posttitle+'</a></li></ul>'; document.write(trtd); }			  
}
document.write('');
}